<body>
<div id="header">
  <div class="content_center">
    <div class="logo">
      <a href="<?php echo base_url();?>"><h1><img src="<?php echo theme_url();?>imgs/temp/manchette.jpg" alt="tin tuc trong ngay " width="352" height="89" title="Tin túc trong ngày" /> </h1></a>
    </div>
    <div class="search_top">
      <script>
      $(document).ready(function(){
        $(".search_top input[type='submit']").click(function()
                {
                    localStorage.removeItem("ser");
                    var xxx = $('#textfield').val(); localStorage.setItem("ser", xxx);
                });
        });      
      </script>
      <?php
    $this->load->helper('form');
    echo form_open('tim-kiem');
      echo form_input(array('name' => 'q','id' => 'textfield','placeholder'=>"Nội dung tìm kiếm..."));
      echo form_submit(array('value'=>"Tìm kiếm"));
    echo form_close();?>
    </div>
    <div class="social"> <a title="có dấu" href="#"><img src="<?php echo theme_url();?>imgs/fb.png" alt="khong dau" /></a> </div>
    <div class="catetop"> <a href="#" title="TÀI CHÍNH - BẤT ĐỘNG SẢN"> TÀI CHÍNH - BẤT ĐỘNG SẢN</a> <span>|</span> <a href="#" title="TÔI LÀM BÁO" rel="nofollow">TÔI LÀM BÁO</a> <span>|</span> HOTLINE : 0989.800.109 </div>
  </div>
</div>
<div id="menu_main">
  <div class="content_center">
    <ul>
    
      <li> <a href="<?php echo base_url();?>" title="Trang chủ">Trang chủ</a> </li>
      <li> <a href="<?php echo base_url();?><?php echo $this->category_m->get_slug(1);?>/" title="Khoa học - Giáo dục">Khoa học - Giáo dục</a> </li>
      <li> <a href="<?php echo base_url();?><?php echo $this->category_m->get_slug(8);?>/" title="Quốc tế ">Quốc tế </a> </li>
      <li> <a href="<?php echo base_url();?><?php echo $this->category_m->get_slug(21);?>/" title="Xã hội ">Xã hội </a> </li>
      <li> <a href="<?php echo base_url();?><?php echo $this->category_m->get_slug(33);?>/" title="Kinh tế"> Kinh tế </a> </li>
      <li> <a href="<?php echo base_url();?><?php echo $this->category_m->get_slug(39);?>/" title="Văn hóa - Giải trí "> Văn hóa - Giải trí </a> </li>
      <li> <a href="<?php echo base_url();?><?php echo $this->category_m->get_slug(48);?>/" title=" Thế giới mạng "> Thế giới mạng </a> </li>
      <li> <a href="<?php echo base_url();?><?php echo $this->category_m->get_slug(55);?>/" title="Luxury Living "> Luxury Living </a> </li>
      <li> <a href="<?php echo base_url();?><?php echo $this->category_m->get_slug(64);?>/" title="thể thao ">Thể thao </a> </li>
      <li> <a href="<?php echo base_url();?><?php echo $this->category_m->get_slug(74);?>/" title="Lý dịch ">Lý dịch </a> </li>
      <li> <a href="<?php echo base_url();?><?php echo $this->category_m->get_slug(77);?>/" title="Cầu vồng lục sắc "> Cầu vồng lục sắc </a> </li>
      <li> <a href="<?php echo base_url();?><?php echo $this->category_m->get_slug(86);?>/" title="Thế giới xe"> Thế giới xe </a> </li>
      <li> <a href="<?php echo base_url();?><?php echo $this->category_m->get_slug(90);?>/" title="Sức khỏe "> Sức khỏe </a> </li>
      <li> <a href="<?php echo base_url();?>" rel="nofollow">Giá quảng cáo</a> </li>
    </ul>
  </div>
</div>

<?php if(isset($catesubs) && count($catesubs) >0) : ?>
<div class="sub_cate_menu">
  <div class="content_center">
    <ul>
    <?php foreach($catesubs as $catesub): ?>
      <li> <a href="<?php echo term_url($catesub);?>" title="<?php echo $catesub->term_name;?>"><?php echo $catesub->term_name;?></a> </li>
    <?php endforeach; ?>
    </ul>
  </div>
</div>
<?php endif;?>
<div id="container">


 <div class="banner_horizontal"> <img src="<?php echo theme_url();?>imgs/temp/top-banner-1180x90.jpg" width="1180" height="90" alt="khong dau" /> </div>
  
  
  
<div id="stream_event">
  <div class="label"> Dòng sự kiện: </div>
  <div class="scroll_text" id="randomevent">
    <?php 
      $event = $this->event_m->get_menu_slug_array();
      foreach ($event as $key => $value) :
        $event = $this->category_m->get_by('term_slug', $value);
        if($event):?>
          <p>
            <a href="<?php echo term_url($event);?>" title="<?php echo $event->term_name;?>">
              <?php echo $event->term_name;?>
              <img src="<?php echo theme_url();?>imgs/icon_new.gif" alt="su kien moi" />
            </a> | 
          </p>
        <?php endif;
      endforeach;
    ?>
  </div>

  <?php 
    $items = array() ; $lastEl = ''; $anchor; 
    if(@$this->msystem->get_global('breadscrum_title') && $this->msystem->get_global('breadscrum_title') != ''){
      $lastEl = '<li><a title="' . $this->msystem->get_global('breadscrum_title') . '" href="' .  current_url() . '">' . $this->msystem->get_global('breadscrum_title') . '</a></li>';  
    }
    else if(@$this->msystem->get_global('cat_id') && @$this->msystem->get_global('cat_id') != '' ){
      $anchor = @$this->msystem->get_global('cat_id');
      $anchor = $this->msystem->get_global('cate');
      $breadcrums_post = @$this->msystem->get_global('post');
      $lastEl = '';  
      if($breadcrums_post){
        $lastEl = '<li><a title="' . $breadcrums_post->post_title . '" href="' . post_url($breadcrums_post) . '">' . $breadcrums_post->post_title . '</a></li>';  
        $items[] = $anchor;
      }
      else{
        $lastEl = '<li><a title="' . $anchor->term_name . '" href="' . term_url($anchor) . '">' . $anchor->term_name . '</a></li>';  
      }

      while($anchor->term_parent != 0){
        $anchor = $this->category_m->get_by('term_id', $anchor->term_parent);
        $items[] = $anchor;
      }
      $items = array_reverse($items);
    }
  ?>
    <div class="breadcrums-single">
      <ul>
        <li>
          <a title="Trang chủ Một thế giới" href="<?php echo base_url();?>">Một Thế Giới</a>
          <span class="separator">›</span>
        </li>
        <?php foreach ($items as $i) :?>
        <li>
          <a title="<?php echo $i->term_name;?>" href="<?php echo term_url($i);?>"><?php echo $i->term_name;?></a>
          <span class="separator">›</span>
        </li>
        
        <?php endforeach;?>
        <?php echo $lastEl;?>
      </ul>
    </div>
</div>
  